# -*- coding: utf-8 -*-
# @Time    : 2022/7/16 11:45
# @Author  : catherine
# @Email   : catherine_csq@163.com
# @File    : clue_pool_page.py
# @Software: PyCharm
from selenium.webdriver.common.by import By

from pages.base_page import BasePage


class CluePoolPage(BasePage):
    '''线索池页面类'''
    url='http://192.168.189.1:8081/crm/index.php?m=leads&a=index&by=public'
    #定位器
    assign_clue_locator = (By.XPATH, '//*[@id="form1"]/table/tbody/tr/td[10]/a[5]')
    confirm_locator = (By.XPATH, '/html/body/div[9]/div[3]/div/button[1]/span')

    def click_assign_clue(self):
        '''点击第一个线索的分配按钮'''
        self.find_element(self.assign_clue_locator).click()

    def click_confirm_assign(self):
        self.find_element(self.confirm_locator).click()




